﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class styles_AdminMasterPage : System.Web.UI.MasterPage
{
    protected void Page_Load(object sender, EventArgs e)
    {
        UserLogin user = Session["Admin"] as UserLogin;
        if (user != null)
        {
            username.InnerText = user.Name;
        }
        else
        {
            Response.Redirect("AdminLogin.aspx");
        }
    }

    protected void lnkLogout_Click(object sender, EventArgs e)
    {
        Session["Admin"] = null;
        Response.Redirect("AdminLogin.aspx");
    }
}
